#ifndef INTERP_H
#define INTERP_H
#include "util.h"
#include "slp.h"

typedef struct table* Table_;

struct table {
	string id;
	int value;
	Table_ tail;
};

struct IntAndTable {
	int i;
	Table_ t;
};

Table_ Table(string id, int value, Table_ tail);
Table_ update(Table_ t1, string id, int value);
int lookup(Table_ t1, string id);
Table_ interpStm(A_stm stm, Table_ t);
struct IntAndTable interpExp(A_exp exp, Table_ t);

#endif
